from poker_bot.core.models.dto import ReviewDTO
from poker_bot.database.uow import SQLAlchemyUoW


class ReviewService:
    def __init__(self, uow: SQLAlchemyUoW):
        self._uow = uow

    async def get_review_by_id(self, review_id: int) -> ReviewDTO | None:
        return await self._uow.review_reader.get_review_by_id(review_id)

    async def get_reviews(self) -> list[ReviewDTO]:
        return await self._uow.review_reader.get_reviews()
